{% extends 'MopaBootstrapBundle::base_initializr.html.twig' %}

{% block head_style %}
{% include "CmfCreateBundle::includecssfiles.html.twig" %}
{% stylesheets
       '@ApplicationGlobalBundle/Resources/public/less/applicationglobalbundle.less'
%}
<link href="{{ asset_url }}" type="text/css" rel="stylesheet" media="screen" />
{% endstylesheets %}
{% endblock head_style %}


{% block body_tag %}
<body data-spy="scroll" data-target="#navbar">
{% endblock body_tag %}


{% block head_bottom %}
    {{ parent() }}
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-17161773-2']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>
{% endblock head_bottom %}

{% block navbar %}
{% embed '@MopaBootstrap/Navbar/navbar.html.twig' with { fixedTop: true, inverse: true, id: 'navbar' } %}
    {% block brand %}
        <div class="navbar-brand">
            <a href="{{ path('homepage') }}">
                <img src="{{ asset('bundles/rhacontent/images/logo-white.svg') }}" style="height:50px"></img>
            </a>
            <img id="name" src="{{ asset('bundles/rhacontent/images/name.svg') }}" class="pull-right"></img>
            <hr class="brand"/>
        </div>
    {% endblock %}

    {% block menu %}
        {{ mopa_bootstrap_menu('RhaContentBundle:Builder:createMainMenu', {'automenu': 'navbar', 'pull-right': true}) }}
     {#   {{ mopa_bootstrap_menu('exampledropdown', {'automenu': 'navbar', 'pull-right': true}) }}#}
    {% endblock %} 
{% endembed %}
{% endblock navbar %}

{% block body %}
<!--<img src="{{ asset('bundles/rhacontent/images/badge.svg') }}" class="nav-badge"></img>-->
{{ parent() }}
    
{% endblock body%}

{% block content_row %}
{{ parent() }}
{#

{% if showTemplate is defined or showForm is defined %}
<div class="row">
    {% if showForm is defined %}
    <div class="col-lg-6">
        <p><strong>FormType Code</strong></p>
        <pre class="prettyprint">{{ classSource(showForm) }}</pre>
    </div>
    {% endif %}
    {% if showTemplate is defined %}
    <div class="col-lg-6">
        <p><strong>Template Code</strong></p>
        <pre class="prettyprint">{{ twigSource(showTemplate) }}</pre>
    </div>
    {% endif %}
</div>
{% endif %}
#}

{% endblock content_row %}

{% block footer %}
    <p>&copy; <a href="{{ path('homepage') }}" target="_blank">Raymond Harris Architects</a> 2014-{{ "now"|date("Y") }}</p>
{% endblock footer %}

{% block foot_script %}
{{ parent() }}
    
    {% javascripts
      
      '@ApplicationGlobalBundle/Resources/public/js/offcanvas.js'
    %}
      <script src="{{ asset_url }}"></script>
    {% endjavascripts %}
    
    {% render(controller("cmf_create.jsloader.controller:includeJSFilesAction")) %}
{% endblock foot_script %}
